package com.platform.base.domain;

import com.platform.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

import com.platform.common.core.domain.BaseEntity;

/**
 * 厂商信息对象 base_factory
 * 
 * @author wangqi
 * @date 2020-09-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("base_factory")
public class BaseFactory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 厂商id */
    @TableId(type = IdType.AUTO)
    private Long factoryId;

    /** 厂商名称 */
    @NotBlank(message = "厂商名称不能为空")
    @Excel(name = "厂商名称")
    private String factoryName;

    /** 厂商代码 */
    @Excel(name = "厂商代码")
    @Size(min = 0, max = 2, message = "厂商代码长度不允许超过两个字符")
    private String factoryCode;

    /** 厂商电话 */
    @Excel(name = "厂商电话")
    private String factoryPhone;

    /** 电子邮件 */
    @Excel(name = "电子邮件")
    private String factoryEmail;

    /** 厂商地址 */
    @Excel(name = "厂商地址")
    private String factoryLocation;

    /** 联系人 */
    @Excel(name = "联系人")
    private String factoryLiaison;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String factoryContact;

    /** 删除标识0正常1删除 */
    private String delFlag;

}
